﻿<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
  
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <title>Class FTPHelper
   </title>
    <meta name="viewport" content="width=device-width">
    <meta name="title" content="Class FTPHelper
   ">
    <meta name="generator" content="docfx 2.48.0.0">
    
    <link rel="shortcut icon" href="../../favicon.ico">
    <link rel="stylesheet" href="../../styles/docfx.vendor.css">
    <link rel="stylesheet" href="../../styles/docfx.css">
    <link rel="stylesheet" href="../../styles/main.css">
    <meta property="docfx:navrel" content="../../toc.html">
    <meta property="docfx:tocrel" content="../../apicatlog/toc.html">
    
    
    
  </head>
  <body data-spy="scroll" data-target="#affix" data-offset="120">
    <div id="wrapper">
      <header>
        
        <nav id="autocollapse" class="navbar navbar-inverse ng-scope" role="navigation">
          <div class="container">
            <div class="navbar-header">
              <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
              </button>
              
              <a class="navbar-brand" href="../../index.html">
                <img id="logo" class="svg" src="../../logo.svg" alt="">
              </a>
            </div>
            <div class="collapse navbar-collapse" id="navbar">
              <form class="navbar-form navbar-right" role="search" id="search">
                <div class="form-group">
                  <input type="text" class="form-control" id="search-query" placeholder="Search" autocomplete="off">
                </div>
              </form>
            </div>
          </div>
        </nav>
        
        <div class="subnav navbar navbar-default">
          <div class="container hide-when-search" id="breadcrumb">
            <ul class="breadcrumb">
              <li></li>
            </ul>
          </div>
        </div>
      </header>
      <div role="main" class="container body-content hide-when-search">
        
        <div class="sidenav hide-when-search">
          <a class="btn toc-toggle collapse" data-toggle="collapse" href="#sidetoggle" aria-expanded="false" aria-controls="sidetoggle">Show / Hide Table of Contents</a>
          <div class="sidetoggle collapse" id="sidetoggle">
            <div id="sidetoc"></div>
          </div>
        </div>
        <div class="article row grid-right">
          <div class="col-md-10">
            <article class="content wrap" id="_content" data-uid="WQLAPI.Helper.FTPHelper">
  
  
  <h1 id="WQLAPI_Helper_FTPHelper" data-uid="WQLAPI.Helper.FTPHelper" class="text-break">Class FTPHelper
  </h1>
  <div class="markdown level0 summary"></div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><span class="xref">System.Object</span></div>
    <div class="level1"><span class="xref">FTPHelper</span></div>
  </div>
  <div class="inheritedMembers">
    <h5>Inherited Members</h5>
    <div>
      <span class="xref">System.Object.ToString()</span>
    </div>
    <div>
      <span class="xref">System.Object.Equals(System.Object)</span>
    </div>
    <div>
      <span class="xref">System.Object.Equals(System.Object, System.Object)</span>
    </div>
    <div>
      <span class="xref">System.Object.ReferenceEquals(System.Object, System.Object)</span>
    </div>
    <div>
      <span class="xref">System.Object.GetHashCode()</span>
    </div>
    <div>
      <span class="xref">System.Object.GetType()</span>
    </div>
    <div>
      <span class="xref">System.Object.MemberwiseClone()</span>
    </div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="WQLAPI.Helper.html">WQLAPI.Helper</a></h6>
  <h6><strong>Assembly</strong>: WQLAPI.dll</h6>
  <h5 id="WQLAPI_Helper_FTPHelper_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class FTPHelper</code></pre>
  </div>
  <h3 id="constructors">Constructors
  </h3>
  
  
  <a id="WQLAPI_Helper_FTPHelper__ctor_" data-uid="WQLAPI.Helper.FTPHelper.#ctor*"></a>
  <h4 id="WQLAPI_Helper_FTPHelper__ctor_System_String_System_String_System_String_System_String_" data-uid="WQLAPI.Helper.FTPHelper.#ctor(System.String,System.String,System.String,System.String)">FTPHelper(String, String, String, String)</h4>
  <div class="markdown level1 summary"><p>初始化</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public FTPHelper(string ftpServerIP, string ftpRemotePath, string ftpUserID, string ftpPassword)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">ftpServerIP</span></td>
        <td></td>
      </tr>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">ftpRemotePath</span></td>
        <td></td>
      </tr>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">ftpUserID</span></td>
        <td></td>
      </tr>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">ftpPassword</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <h3 id="properties">Properties
  </h3>
  
  
  <a id="WQLAPI_Helper_FTPHelper_ftpPassword_" data-uid="WQLAPI.Helper.FTPHelper.ftpPassword*"></a>
  <h4 id="WQLAPI_Helper_FTPHelper_ftpPassword" data-uid="WQLAPI.Helper.FTPHelper.ftpPassword">ftpPassword</h4>
  <div class="markdown level1 summary"><p>FTP服务器登录密码</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public string ftpPassword { get; }</code></pre>
  </div>
  <h5 class="propertyValue">Property Value</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="WQLAPI_Helper_FTPHelper_ftpRemotePath_" data-uid="WQLAPI.Helper.FTPHelper.ftpRemotePath*"></a>
  <h4 id="WQLAPI_Helper_FTPHelper_ftpRemotePath" data-uid="WQLAPI.Helper.FTPHelper.ftpRemotePath">ftpRemotePath</h4>
  <div class="markdown level1 summary"><p>FTP服务器默认目录</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public string ftpRemotePath { get; }</code></pre>
  </div>
  <h5 class="propertyValue">Property Value</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="WQLAPI_Helper_FTPHelper_ftpServerIP_" data-uid="WQLAPI.Helper.FTPHelper.ftpServerIP*"></a>
  <h4 id="WQLAPI_Helper_FTPHelper_ftpServerIP" data-uid="WQLAPI.Helper.FTPHelper.ftpServerIP">ftpServerIP</h4>
  <div class="markdown level1 summary"><p>FTP服务器IP</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public string ftpServerIP { get; }</code></pre>
  </div>
  <h5 class="propertyValue">Property Value</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="WQLAPI_Helper_FTPHelper_ftpURI_" data-uid="WQLAPI.Helper.FTPHelper.ftpURI*"></a>
  <h4 id="WQLAPI_Helper_FTPHelper_ftpURI" data-uid="WQLAPI.Helper.FTPHelper.ftpURI">ftpURI</h4>
  <div class="markdown level1 summary"><p>FTP服务器地址</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public string ftpURI { get; }</code></pre>
  </div>
  <h5 class="propertyValue">Property Value</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="WQLAPI_Helper_FTPHelper_ftpUserID_" data-uid="WQLAPI.Helper.FTPHelper.ftpUserID*"></a>
  <h4 id="WQLAPI_Helper_FTPHelper_ftpUserID" data-uid="WQLAPI.Helper.FTPHelper.ftpUserID">ftpUserID</h4>
  <div class="markdown level1 summary"><p>FTP服务器登录用户名</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public string ftpUserID { get; }</code></pre>
  </div>
  <h5 class="propertyValue">Property Value</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
  </h3>
  
  
  <a id="WQLAPI_Helper_FTPHelper_CreateDirectory_" data-uid="WQLAPI.Helper.FTPHelper.CreateDirectory*"></a>
  <h4 id="WQLAPI_Helper_FTPHelper_CreateDirectory_System_String_" data-uid="WQLAPI.Helper.FTPHelper.CreateDirectory(System.String)">CreateDirectory(String)</h4>
  <div class="markdown level1 summary"><p>创建目录</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public void CreateDirectory(string remoteDirectoryName)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">remoteDirectoryName</span></td>
        <td><p>目录名</p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="WQLAPI_Helper_FTPHelper_DeleteFile_" data-uid="WQLAPI.Helper.FTPHelper.DeleteFile*"></a>
  <h4 id="WQLAPI_Helper_FTPHelper_DeleteFile_System_String_" data-uid="WQLAPI.Helper.FTPHelper.DeleteFile(System.String)">DeleteFile(String)</h4>
  <div class="markdown level1 summary"><p>删除文件</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public void DeleteFile(string remoteFileName)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">remoteFileName</span></td>
        <td><p>要删除的文件名</p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="WQLAPI_Helper_FTPHelper_Download_" data-uid="WQLAPI.Helper.FTPHelper.Download*"></a>
  <h4 id="WQLAPI_Helper_FTPHelper_Download_System_String_System_String_" data-uid="WQLAPI.Helper.FTPHelper.Download(System.String,System.String)">Download(String, String)</h4>
  <div class="markdown level1 summary"><p>下载</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public void Download(string saveFilePath, string downloadFileName)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">saveFilePath</span></td>
        <td><p>下载后的保存路径</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">downloadFileName</span></td>
        <td><p>要下载的文件名</p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="WQLAPI_Helper_FTPHelper_Download_" data-uid="WQLAPI.Helper.FTPHelper.Download*"></a>
  <h4 id="WQLAPI_Helper_FTPHelper_Download_System_String_System_String_System_Boolean_" data-uid="WQLAPI.Helper.FTPHelper.Download(System.String,System.String,System.Boolean)">Download(String, String, Boolean)</h4>
  <div class="markdown level1 summary"><p>下载</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public void Download(string saveFilePath, string downloadFileName, bool Compare)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">saveFilePath</span></td>
        <td><p>下载后的保存路径</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">downloadFileName</span></td>
        <td><p>要下载的文件名</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Boolean</span></td>
        <td><span class="parametername">Compare</span></td>
        <td><p>和本地已存在的文件比较，只有在保存路径存在该文件时有效.本地文件修改时间大于服务器文件时间则不下载</p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="WQLAPI_Helper_FTPHelper_FileRemoter_" data-uid="WQLAPI.Helper.FTPHelper.FileRemoter*"></a>
  <h4 id="WQLAPI_Helper_FTPHelper_FileRemoter" data-uid="WQLAPI.Helper.FTPHelper.FileRemoter">FileRemoter()</h4>
  <div class="markdown level1 summary"><p>获取服务器文件的目录</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public List&lt;string&gt; FileRemoter()</code></pre>
  </div>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Collections.Generic.List</span>&lt;<span class="xref">System.String</span>&gt;</td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="WQLAPI_Helper_FTPHelper_Finalize_" data-uid="WQLAPI.Helper.FTPHelper.Finalize*"></a>
  <h4 id="WQLAPI_Helper_FTPHelper_Finalize" data-uid="WQLAPI.Helper.FTPHelper.Finalize">Finalize()</h4>
  <div class="markdown level1 summary"></div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">protected void Finalize()</code></pre>
  </div>
  
  
  <a id="WQLAPI_Helper_FTPHelper_FtpIsConnected_" data-uid="WQLAPI.Helper.FTPHelper.FtpIsConnected*"></a>
  <h4 id="WQLAPI_Helper_FTPHelper_FtpIsConnected" data-uid="WQLAPI.Helper.FTPHelper.FtpIsConnected">FtpIsConnected()</h4>
  <div class="markdown level1 summary"><p>ftp服务器是否连接成功</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public bool FtpIsConnected()</code></pre>
  </div>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Boolean</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="WQLAPI_Helper_FTPHelper_GotoDirectory_" data-uid="WQLAPI.Helper.FTPHelper.GotoDirectory*"></a>
  <h4 id="WQLAPI_Helper_FTPHelper_GotoDirectory_System_String_System_Boolean_" data-uid="WQLAPI.Helper.FTPHelper.GotoDirectory(System.String,System.Boolean)">GotoDirectory(String, Boolean)</h4>
  <div class="markdown level1 summary"><p>切换当前目录</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public void GotoDirectory(string DirectoryName, bool IsRoot)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">DirectoryName</span></td>
        <td></td>
      </tr>
      <tr>
        <td><span class="xref">System.Boolean</span></td>
        <td><span class="parametername">IsRoot</span></td>
        <td><p>true:绝对路径 false:相对路径</p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="WQLAPI_Helper_FTPHelper_IsDirectoryExist_" data-uid="WQLAPI.Helper.FTPHelper.IsDirectoryExist*"></a>
  <h4 id="WQLAPI_Helper_FTPHelper_IsDirectoryExist_System_String_" data-uid="WQLAPI.Helper.FTPHelper.IsDirectoryExist(System.String)">IsDirectoryExist(String)</h4>
  <div class="markdown level1 summary"><p>判断当前目录下指定的一级子目录是否存在</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public bool IsDirectoryExist(string remoteDirectoryName)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">remoteDirectoryName</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Boolean</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="WQLAPI_Helper_FTPHelper_IsExist_" data-uid="WQLAPI.Helper.FTPHelper.IsExist*"></a>
  <h4 id="WQLAPI_Helper_FTPHelper_IsExist_System_String_" data-uid="WQLAPI.Helper.FTPHelper.IsExist(System.String)">IsExist(String)</h4>
  <div class="markdown level1 summary"><p>判断当前目录下指定的子目录或文件是否存在</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public bool IsExist(string remoteName)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">remoteName</span></td>
        <td><p>指定的目录或文件名</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Boolean</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="WQLAPI_Helper_FTPHelper_IsFileExist_" data-uid="WQLAPI.Helper.FTPHelper.IsFileExist*"></a>
  <h4 id="WQLAPI_Helper_FTPHelper_IsFileExist_System_String_" data-uid="WQLAPI.Helper.FTPHelper.IsFileExist(System.String)">IsFileExist(String)</h4>
  <div class="markdown level1 summary"><p>判断当前目录下指定的子文件是否存在</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public bool IsFileExist(string remoteFileName)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">remoteFileName</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Boolean</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="WQLAPI_Helper_FTPHelper_ListDirectories_" data-uid="WQLAPI.Helper.FTPHelper.ListDirectories*"></a>
  <h4 id="WQLAPI_Helper_FTPHelper_ListDirectories" data-uid="WQLAPI.Helper.FTPHelper.ListDirectories">ListDirectories()</h4>
  <div class="markdown level1 summary"><p>列出当前目录的所有一级子目录</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public List&lt;FileStruct&gt; ListDirectories()</code></pre>
  </div>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Collections.Generic.List</span>&lt;<a class="xref" href="WQLAPI.Helper.FileStruct.html">FileStruct</a>&gt;</td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="WQLAPI_Helper_FTPHelper_ListFiles_" data-uid="WQLAPI.Helper.FTPHelper.ListFiles*"></a>
  <h4 id="WQLAPI_Helper_FTPHelper_ListFiles" data-uid="WQLAPI.Helper.FTPHelper.ListFiles">ListFiles()</h4>
  <div class="markdown level1 summary"><p>列出当前目录的所有文件</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public List&lt;FileStruct&gt; ListFiles()</code></pre>
  </div>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Collections.Generic.List</span>&lt;<a class="xref" href="WQLAPI.Helper.FileStruct.html">FileStruct</a>&gt;</td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="WQLAPI_Helper_FTPHelper_ListFilesAndDirectories_" data-uid="WQLAPI.Helper.FTPHelper.ListFilesAndDirectories*"></a>
  <h4 id="WQLAPI_Helper_FTPHelper_ListFilesAndDirectories" data-uid="WQLAPI.Helper.FTPHelper.ListFilesAndDirectories">ListFilesAndDirectories()</h4>
  <div class="markdown level1 summary"><p>获取当前目录的文件和一级子目录信息</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public List&lt;FileStruct&gt; ListFilesAndDirectories()</code></pre>
  </div>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Collections.Generic.List</span>&lt;<a class="xref" href="WQLAPI.Helper.FileStruct.html">FileStruct</a>&gt;</td>
        <td></td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="WQLAPI_Helper_FTPHelper_RemoveDirectory_" data-uid="WQLAPI.Helper.FTPHelper.RemoveDirectory*"></a>
  <h4 id="WQLAPI_Helper_FTPHelper_RemoveDirectory_System_String_" data-uid="WQLAPI.Helper.FTPHelper.RemoveDirectory(System.String)">RemoveDirectory(String)</h4>
  <div class="markdown level1 summary"><p>删除目录(包括下面所有子目录和子文件)</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public void RemoveDirectory(string remoteDirectoryName)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">remoteDirectoryName</span></td>
        <td><p>要删除的带路径目录名：如web/test</p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="WQLAPI_Helper_FTPHelper_ReName_" data-uid="WQLAPI.Helper.FTPHelper.ReName*"></a>
  <h4 id="WQLAPI_Helper_FTPHelper_ReName_System_String_System_String_" data-uid="WQLAPI.Helper.FTPHelper.ReName(System.String,System.String)">ReName(String, String)</h4>
  <div class="markdown level1 summary"><p>更改目录或文件名</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public void ReName(string currentName, string newName)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">currentName</span></td>
        <td><p>当前名称</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">newName</span></td>
        <td><p>修改后新名称</p>
</td>
      </tr>
    </tbody>
  </table>
  
  
  <a id="WQLAPI_Helper_FTPHelper_Upload_" data-uid="WQLAPI.Helper.FTPHelper.Upload*"></a>
  <h4 id="WQLAPI_Helper_FTPHelper_Upload_System_String_" data-uid="WQLAPI.Helper.FTPHelper.Upload(System.String)">Upload(String)</h4>
  <div class="markdown level1 summary"><p>文件上传</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public void Upload(string localFilePath)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">localFilePath</span></td>
        <td><p>本地文件路径</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="extensionmethods">Extension Methods</h3>
  <div>
      <a class="xref" href="WQLAPI.Extensions.PublictExtension.html#WQLAPI_Extensions_PublictExtension_DeepClone__1___0_">PublictExtension.DeepClone&lt;T&gt;(T)</a>
  </div>
</article>
          </div>
          
          <div class="hidden-sm col-md-2" role="complementary">
            <div class="sideaffix">
              <div class="contribution">
                <ul class="nav">
                </ul>
              </div>
              <nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix">
              <!-- <p><a class="back-to-top" href="#top">Back to top</a><p> -->
              </nav>
            </div>
          </div>
        </div>
      </div>
      
      <footer>
        <div class="grad-bottom"></div>
        <div class="footer">
          <div class="container">
            <span class="pull-right">
              <a href="#top">Back to top</a>
            </span>
            
            <span>Generated by <strong>DocFX</strong></span>
          </div>
        </div>
      </footer>
    </div>
    
    <script type="text/javascript" src="../../styles/docfx.vendor.js"></script>
    <script type="text/javascript" src="../../styles/docfx.js"></script>
    <script type="text/javascript" src="../../styles/main.js"></script>
  </body>
</html>
